package com.yunxin.core.domain.model.merchant;

import java.util.List;

/**
 * @author zero°
 * @since 2023-07-12
 */
public interface MerchantUserAccountRepository {

    /**
     * 保存
     * @param merchantUserAccount merchantUserAccount
     * @return boolean
     */
    boolean saveMerchantAccount(MerchantUserAccount merchantUserAccount);

    /**
     * 更新
     * @param merchantUserAccount merchantUserAccount
     * @return boolean
     */
    boolean updateMerchantAccount( MerchantUserAccount merchantUserAccount);

    /**
     * 根据系统用户id查询商户用户
     * @param sysUserId sysUserId
     * @return MerchantUserAccount
     */
    MerchantUserAccount getMerchantUserAccountBySysUserId(Long sysUserId);

    /**
     * 根据sysUserIds删除数据（逻辑删除）
     * @param sysUserIds sysUserIds
     * @return boolean
     */
    boolean deleteMerchantAccountBySysUserIds(List<Long> sysUserIds);
}
